package com.rpcdemo.config;

import com.rpcdemo.client.UserRemoteClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * create by yongli on 2021-06-21 21:18
 */
@Component
public class UserRemoteFeignFallBack implements UserRemoteClient {
    private static final Logger logger = LoggerFactory.getLogger(UserRemoteFeignFallBack.class);

    @Override
    public String hello() {
        logger.info("hello is called");
        return null;
    }

    @Override
    public String hi() {
        logger.info("there is not url ");
        return null;
    }
}
